package thread;

import java.util.Scanner;

public class SleepDemo {
    public static void main(String[] args) {
//        System.out.println("s");
//        try {
//            Thread.sleep(5000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
//        System.out.println("e");
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
//        int b = a;
//        for (int i = 1000; i <= a * 1000; i+=1000) {
//            try {
//                Thread.sleep(i);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
//            System.out.println(b);
//            b--;
//        }
        for (int i = a; i > 0; i--) {
            System.out.println(i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
